package com.ynding.cloud.auth.api.admin.api;

import com.ynding.cloud.auth.api.admin.domain.UserDO;
import com.ynding.cloud.common.model.bo.ResponseBean;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * <p> </p>
 *
 * @author ynding
 * @version 2021/9/9
 **/
public interface IUserApiService {

    /**
     * 根据用户名获取用户详情
     * @param username
     * @return
     * @throws UsernameNotFoundException
     */
    UserDO loadUserByUsername(String username) throws UsernameNotFoundException;

    /**
     * 注册用户
     * @param username 用户名
     * @param password 加过密的密码
     * @return
     */
    ResponseBean userReg(String username, String password);

}
